package com.it.cloud.generator.result;

import java.util.List;
import com.it.cloud.common.R;
import com.it.cloud.common.vo.TreeNode;
import com.it.cloud.common.vo.TreeNodeTitleSlot;
import ${entityImport};

public interface ${name}Service {
	TreeNodeTitleSlot genTitleSlot();
	TreeNode genTreeNode(${name} obj);
	List<TreeNode> genTreeNodeList(List<${name}> list);
	List<${name}> findChild(Long pid);
	Boolean hasChild(Long pid);
	String generateName(Long pid);
	Boolean isNameExist(Long id, String name);
	Boolean isCodeExist(Long id,String name);
	void moveInner(${name} dragObj,${name} dropObj);
	void moveBefore(${name} dragObj,${name} dropObj);
	void moveAfter(${name} dragObj,${name} dropObj);
	int findMaxSort(Long pid);
	String[] generateNamesAndIds(Long id);
	R<TreeNode> addChild(Long pid);
}

